import request from '@/utils/request'

// 查询订单成本核算列表
export function listZcOrderCostAccounting(query) {
  return request({
    url: '/business/ZcOrderCostAccounting/list',
    method: 'get',
    params: query
  })
}

// 查询订单成本核算详细
export function getZcOrderCostAccounting(id) {
  return request({
    url: '/business/ZcOrderCostAccounting/' + id,
    method: 'get'
  })
}

// 新增订单成本核算
export function addZcOrderCostAccounting(data) {
  return request({
    url: '/business/ZcOrderCostAccounting',
    method: 'post',
    data: data
  })
}

// 修改订单成本核算
export function updateZcOrderCostAccounting(data) {
  return request({
    url: '/business/ZcOrderCostAccounting',
    method: 'put',
    data: data
  })
}

// 删除订单成本核算
export function delZcOrderCostAccounting(id) {
  return request({
    url: '/business/ZcOrderCostAccounting/' + id,
    method: 'delete'
  })
}
